home *** CD-ROM | disk | FTP | other *** search
- on GeographyRoll
- global BigList, Countries
- set TestCoords to [rect(313, 164, 329, 183), rect(560, 153, 595, 199), rect(248, 160, 276, 180), rect(289, 120, 302, 146), rect(273, 120, 286, 146), rect(289, 150, 310, 180), rect(110, 253, 135, 274), rect(135, 267, 211, 336), rect(115, 292, 132, 309), rect(135, 242, 153, 260), rect(37, 200, 100, 243), rect(489, 255, 602, 288), rect(10, 139, 134, 194)]
- repeat with n = 1 to count(TestCoords)
- if inside(point(the mouseH, the mouseV), getAt(TestCoords, n)) then
- NewPallette_Mills()
- set temp to getAt(BigList, n)
- sort(temp)
- tell window "Mills_Navigation"
- UpdateMill(temp, getAt(Countries, n))
- end tell
- exit
- end if
- end repeat
- end
-
- on buttonRoll
- global BigList, Countries
- if inside(point(the mouseH, the mouseV), rect(348, 340, 564, 386)) then
- NewPallette_Mills()
- set hugelist to [" Mills Map": "Main"]
- repeat with a = 1 to count(BigList)
- set MyItem to getAt(BigList, a)
- repeat with b = 2 to count(MyItem)
- addProp(hugelist, getPropAt(MyItem, b), getAt(MyItem, b))
- end repeat
- end repeat
- sort(hugelist)
- tell window "Mills_Navigation"
- UpdateMill(hugelist, "Select Location")
- end tell
- exit
- end if
- end
-
- on CursorRoll WhoAmi, Myrects
- if the frontWindow = WhoAmi then
- repeat with C = 1 to count(Myrects)
- if inside(point(the mouseH, the mouseV), getAt(Myrects, C)) then
- cursor([member "hand", member "handmask"])
- next repeat
- end if
- cursor(0)
- end repeat
- end if
- end
-
- on mouseDown
- if the frameLabel = "Main" then
- if inside(point(the mouseH, the mouseV), rect(345, 351, 563, 386)) then
- puppetSprite(50, 1)
- set the memberNum of sprite 50 to member "mills_list_click"
- set the rect of sprite 50 to rect(345, 351, 563, 386)
- updateStage()
- end if
- end if
- end
-